From: River Tarnell Date: Mon, 14 Mar 2005 03:13:27 +0000 (+0000) Subject: fix URLs X-Git-Tag: 1.5.0alpha1~615 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=e5cc47dfbbe709bb21d34efdbaaa8fd9f4d577ad;p=lhc%2Fweb%2Fwiklou.git fix URLs --- diff --git a/includes/PageHistory.php b/includes/PageHistory.php index c7bb05e7aa..7318ffd4d4 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -116,12 +116,12 @@ class PageHistory { $lowts = $pages[count($pages) - 1]->rev_timestamp; - $myurl = $wgTitle->getLocalURL('action=history'); - $prevurl = "{$myurl}&dir=prev&offset={$offset}&limit={$limit}"; - $nexturl = "{$myurl}&offset={$lowts}&limit={$limit}"; + $prevurl = $wgTitle->getLocalURL("action=history&dir=prev&offset={$offset}&limit={$limit}"); + $nexturl = $wgTitle->getLocalURL("action=history&offset={$lowts}&limit={$limit}"); $urls = array(); foreach (array(20, 50, 100, 250, 500) as $num) { - $urls[] = "".$wgLang->formatNum($num).""; + $urls[] = "getLocalURL( + "action=history&offset={$offset}&limit={$num}")."\">".$wgLang->formatNum($num).""; } $bits = implode($urls, ' | '); $numbar = wfMsg("viewprevnext",